﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Bibilioteca.Models
{
    public class TipoMaterial
    {
        public int Id { get; set; }

        [StringLength(25, MinimumLength = 2)]
        [Required]
        public string Nombre { get; set; }

        public TipoMaterial(int _id, string _nombre)
        {
            Id = _id;
            Nombre = _nombre;
        }
    }
}